package com.example.myapplication.utils;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.view.View;

public class CommonUtil {
    public static <T> void jumpToAnotherActivity(Activity ac, Class<T> clazz) {
        ac.startActivity(new Intent(ac, clazz));
    }


    public static <T> void jumpToAnotherActivity(View view, Class<T> clazz) {
        Context context = view.getContext();
        context.startActivity(new Intent(context, clazz));
    }




}
